#ifndef HTTPPOST_H
#define HTTPPOST_H

#include <QWidget>
#include<QNetworkAccessManager>
#include<QNetworkRequest>
#include<QNetworkReply>
#include<QEventLoop>

namespace Ui {
class httppost;
}

class httppost : public QWidget
{
    Q_OBJECT

public:
    explicit httppost(QWidget *parent = nullptr);
    ~httppost();
    bool postMsg(QString url, QMap<QString, QString> headerdata,
                 QByteArray requestData, QByteArray &replyData);
private:
    Ui::httppost *ui;
};

#endif // HTTPPOST_H
